package com.cl.ks.repository;

import com.cl.ks.entity.SysSourceMappingTableField;
import com.cl.mvc.repository.BaseRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysSourceMappingTableFieldRepository extends BaseRepository<SysSourceMappingTableField> {
    @Query(nativeQuery = true,value = "select  table_field from sys_source_mapping_table_field where db_code=:dbCode and table_name=:tableName")
    List<String> listTableField(String dbCode , String tableName);

}
